<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<meta name="author" content="http://www.yuanquanshuqian.com/" />
<title>源泉书签</title>
<link rel="stylesheet" type="text/css"
	href="css/bootstrap-3.3.7-dist/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css"
	href="css/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
<script src="js/js1.12.4/jquery-1.12.4.min.js" type="text/javascript"
	charset="utf-8"></script>
<script src="css/bootstrap-3.3.7-dist/js/bootstrap.min.js"
	type="text/javascript" charset="utf-8"></script>
<script>
	//删除行;(obj代表连接对象)
	function deleteParam(obj) {
		var $td = $(obj).parents('tr').children('td');
		var paramName = $td.eq(0).text();
		var paramCode = $td.eq(1).text();
		//在js端删除一整行数据
		$(obj).parent().parent().remove();
	}
</script>


</head>


<body>
	<table id="table">


		<tr>
			<td>123</td>
			<td>abc</td>
			<td><a href="javascript:void(0)" onclick="deleteParam(this)">删除</a></td>
		</tr>
		<tr>
			<td>周</td>
			<td>214</td>
			<td><a href="javascript:void(0)" onclick="deleteParam(this)">删除</a></td>
		</tr>
		<tr>
			<td>123</td>
			<td>abc</td>
			<td><a href="javascript:void(0)" onclick="deleteParam(this)">删除</a></td>
		</tr>
	</table>


</body>


</html>